/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 网页头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 20px;
    list-style: none;
}

nav a {
    color: #333;
    text-decoration: none;
}

nav a:hover {
    color: #ff6700;
}

.search {
    display: flex;
}

.search input {
    width: 600px;
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search button {
    padding: 8px;
    background-color: #ff6700;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cart a {
    color: #333;
    text-decoration: none;
}

.cart span {
    display: inline-block;
    padding: 4px 8px;
    background-color: #ff6700;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 6px;
}

/* 网页主体内容样式 */
main {
    padding: 20px;
}

/* 网页底部样式 */
footer {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
    color: #666;
}